package com.example.administrator.videotest2.util.Tab;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

import com.example.administrator.videotest2.R;
import com.example.administrator.videotest2.tvshow.TvActivity;

public class Tab_2Activity extends AppCompatActivity implements View.OnClickListener{

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_tab_2);
      /*  Intent intent=new Intent(Tab_2Activity.this, TvActivity.class);
        startActivity(intent);*/
        ImageView tv= (ImageView) findViewById(R.id.tv);
        tv.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.tv:TV();
                break;
            default:break;
        }
    }

    public void TV(){

        Intent intent_tv=new Intent(this,TvActivity.class);
        startActivity(intent_tv);
    }
}
